import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './registerServiceWorker'
import http from './utils/http'
//定义全局变量
Vue.prototype.http = http


import VueResource from 'vue-resource';
Vue.use(VueResource);

import Api from './utils/api';
Vue.prototype.Api = Api;

import iView from 'iview';
import 'iview/dist/styles/iview.css';
Vue.use(iView);


Vue.config.productionTip = false


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')